package com.trsj.lnsj.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
@Table(name = "tab_order")
public class OrderDTO {
    //订单号
    @Id
    private String orderId; //商户订单号
    @Column(name="order_name")
    private String orderName;
    @Column(name="pay_amount")
    private Float payAmount;
    @Column(name="status")
    private Integer status;  //交易状态 订单状态(0:待失败,1:支付成功,-1:支付失败;-2 用户取消 -3 过期)
    @Column(name="happy_no")
    private String happyNo;
    @Column(name="trade_no") //支付宝/微信交易号
    private String tradeNo;
    @Column(name="create_time")
    private Date createTime;
    @Column(name="pay_time")
    private Date pay_time;
    @Column(name="pay_way")
    private Integer payWay;
    @Column(name="activity_id")
    private Long activityId;
    @Column(name="user_id")
    private Long userId;
    @Column(name="person_num")
    private Integer personNum;
    
    
    public Integer getPersonNum() {
		return personNum;
	}
	public void setPersonNum(Integer personNum) {
		this.personNum = personNum;
	}
	public void setActivityId(Long activityId) {
		this.activityId = activityId;
	}
	public String getOrderId() {
        return orderId;
    }
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
    public String getOrderName() {
        return orderName;
    }
    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }
    public Float getPayAmount() {
        return payAmount;
    }
    public void setPayAmount(Float payAmount) {
        this.payAmount = payAmount;
    }
    public String getHappyNo() {
        return happyNo;
    }
    public void setHappyNo(String happyNo) {
        this.happyNo = happyNo;
    }
    public String getTradeNo() {
        return tradeNo;
    }
    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getPay_time() {
		return pay_time;
	}
	public void setPay_time(Date pay_time) {
		this.pay_time = pay_time;
	}
	public Integer getPayWay() {
		return payWay;
	}
	public void setPayWay(Integer payWay) {
		this.payWay = payWay;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Long getActivityId() {
		return activityId;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
    
}
